package com.sdkj.Entity.service;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.sdkj.Entity.BaseEntity;
/**
 * 人才招聘
 * @author admin
 *
 */
@Entity
@Table(name="advertise")
public class Advertise extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String name;//岗位名称
	
	private String askKills;//要求
	
	private String work;//工作内容
	
	private String money;//月薪
	
	private String ext;//福利
	
	private String address;//工作地点
	
	private String businessTrip;//是否出差
	
	private String adStatus;//招聘状态 1 ， 招聘中 2，招聘完毕
	
	private String adDate;//发布日期
	
	private String enDate;//截止日期
	
	private int adCount;//招聘人数
	
	
	@Column(length=1000)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setAskKills(String askKills) {
		this.askKills = askKills;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setBusinessTrip(String businessTrip) {
		this.businessTrip = businessTrip;
	}

	public void setAdStatus(String adStatus) {
		this.adStatus = adStatus;
	}


	public void setAdCount(int adCount) {
		this.adCount = adCount;
	}

	public void setAdDate(String adDate) {
		this.adDate = adDate;
	}

	public void setEnDate(String enDate) {
		this.enDate = enDate;
	}
	@Type(type="text") 
	@Column
	public String getAskKills() {
		return askKills;
	}
	@Column
	public int getAdCount() {
		return adCount;
	}
	@Column
	@Type(type="text") 
	public String getWork() {
		return work;
	}
	@Column(length=30)
	public String getMoney() {
		return money;
	}
	@Column(length=100)
	public String getExt() {
		return ext;
	}
	@Column(length=300)
	public String getAddress() {
		return address;
	}
	@Column(length=100)
	public String getBusinessTrip() {
		return businessTrip;
	}
	@Column(length=20)
	public String getAdStatus() {
		return adStatus;
	}
	@Column(length=30)
	public String getAdDate() {
		return adDate;
	}
	@Column(length=30)
	public String getEnDate() {
		return enDate;
	}

	public Advertise() {
		super();
	}

	public Advertise(String uuid, Date createTime) {
		super(uuid, createTime);
	}

	public Advertise(String askKills, String work, String money, String ext,
			String address, String businessTrip, String adStatus,
			String adDate, String enDate) {
		super();
		this.askKills = askKills;
		this.work = work;
		this.money = money;
		this.ext = ext;
		this.address = address;
		this.businessTrip = businessTrip;
		this.adStatus = adStatus;
		this.adDate = adDate;
		this.enDate = enDate;
	}

	@Override
	public String toString() {
		return "Advertise [askKills=" + askKills + ", work=" + work
				+ ", money=" + money + ", ext=" + ext + ", address=" + address
				+ ", businessTrip=" + businessTrip + ", adStatus=" + adStatus
				+ ", adDate=" + adDate + ", enDate=" + enDate + "]";
	}
	
	

}
